<?php
$componentInformation = array(
    'code'=>'System',
    'name'=>'system.system',
    'author'=>'Coder Soul Studio',
    'website'=>'www.codersoul.com',
    'email'=>'codersoulstudio@gmail.com',
    'version'=>'0.1'
);

$componentSql = "
SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for `system_component`
-- ----------------------------
DROP TABLE IF EXISTS `system_component`;
CREATE TABLE `system_component` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `author` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `version` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `website` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for `system_localiza`
-- ----------------------------
DROP TABLE IF EXISTS `system_localiza`;
CREATE TABLE `system_localiza` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `lang_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `lang_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `long_date` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `short_date` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `long_full_date` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `short_full_date` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of system_localiza
-- ----------------------------
INSERT INTO `system_localiza` VALUES ('1', '简体中文', 'zh-cn', 'Y-m-d H:i:s', 'Y-m-d', 'Y年m月d日 H时i分秒', 'Y年m月d日');
INSERT INTO `system_localiza` VALUES ('2', '台湾繁体', 'zh-tw', 'Y-m-d H:i:s', 'Y-m-d', 'Y年m月d日 H时i分秒', 'Y年m月d日');
INSERT INTO `system_localiza` VALUES ('3', '香港繁体', 'zh-hk', 'Y-m-d H:i:s', 'Y-m-d', 'Y年m月d日 H时i分秒', 'Y年m月d日');
INSERT INTO `system_localiza` VALUES ('4', '英语', 'en-us', 'Y-m-d H:i:s', 'Y-m-d', 'Y年m月d日 H时i分秒', 'Y年m月d日');

-- ----------------------------
-- Table structure for `system_log_access`
-- ----------------------------
DROP TABLE IF EXISTS `system_log_access`;
CREATE TABLE `system_log_access` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `source_type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `source_id` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ip_address` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `access_time` datetime NOT NULL,
  `referer` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parameter` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=682 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for `system_log_request`
-- ----------------------------
DROP TABLE IF EXISTS `system_log_request`;
CREATE TABLE `system_log_request` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `host_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `domain` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `component` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `controller` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `action` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `user_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `ip_address` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `access_time` datetime NOT NULL,
  `referer` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parameter` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=292 DEFAULT CHARSET=utf8;   
";